package com.mingweicai.intergration.redis.cluster.configuration;

import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@ConfigurationProperties(prefix = "spring.redis.custom")
public class RedisClusterProperties {

  private List<String> clusterNodes;
  private Integer minIdle;
  private Integer maxIdle;
  private Integer maxTotal;
  private Integer maxWait;

  public List<String> getClusterNodes() {
    return clusterNodes;
  }

  public void setClusterNodes(List<String> clusterNodes) {
    this.clusterNodes = clusterNodes;
  }

  public Integer getMinIdle() {
    return minIdle;
  }

  public void setMinIdle(Integer minIdle) {
    this.minIdle = minIdle;
  }

  public Integer getMaxIdle() {
    return maxIdle;
  }

  public void setMaxIdle(Integer maxIdle) {
    this.maxIdle = maxIdle;
  }

  public Integer getMaxTotal() {
    return maxTotal;
  }

  public void setMaxTotal(Integer maxTotal) {
    this.maxTotal = maxTotal;
  }

  public Integer getMaxWait() {
    return maxWait;
  }

  public void setMaxWait(Integer maxWait) {
    this.maxWait = maxWait;
  }

  @Override
  public String toString() {
    return "RedisClusterProperties{" +
        "clusterNodes=" + clusterNodes +
        ", minIdle=" + minIdle +
        ", maxIdle=" + maxIdle +
        ", maxTotal=" + maxTotal +
        ", maxWait=" + maxWait +
        '}';
  }
}
